package service.impl;

import java.util.HashMap;
import java.util.List;

import dao.AddMessageDao;
import dao.impl.AddMessageDaoImpl;
import entity.Product_Comment;
import service.Product_CommentService;

public class Product_CommentServiceImpl implements Product_CommentService{

	private AddMessageDao ac = new  AddMessageDaoImpl();
	
	
	@Override
	public List<Product_Comment> getAllUserInfo(Integer pageNo, Integer paeSize, HashMap<String, String> map) {
		List<Product_Comment> list = ac.getAllUserInfo(pageNo, paeSize, map);
		
		for (Product_Comment product_Comment : list) {
			System.out.println(product_Comment);
		}
		
		
		return list;
	}

	@Override
	public Integer getRows(HashMap<String, String> map) {
		
		return ac.getRows(map);
	}

	@Override
	public boolean addComment(Product_Comment product_Comment) {
		
		return ac.addComment(product_Comment);
	}

}
